﻿<Application
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
		xmlns:System="clr-namespace:System;assembly=mscorlib" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:Skin1967="clr-namespace:Coding4Fun.Obd.InstrumentCluster.Controls.Skin1967"
		xmlns:Skin2011="clr-namespace:Coding4Fun.Obd.InstrumentCluster.Controls.Skin2011"
		xmlns:SkinMetro="clr-namespace:Coding4Fun.Obd.InstrumentCluster.Controls.SkinMetro" mc:Ignorable="d" 
	x:Class="Coding4Fun.Obd.InstrumentCluster.App"
	StartupUri="MainWindow.xaml">
	<Application.Resources>
		<!-- Resources scoped at the Application level should be defined here. -->
		<Style x:Key="ButtonStyle_2011Settings" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Image Height="43" Source="Resources/2011/Settings-Button.png" Stretch="Fill" Width="43"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="Cursor" Value="Hand"/>
		</Style>
		<Style x:Key="ButtonStyle_1967Settings" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Image Height="28" Source="Resources/1967/Settings-Button.png" Stretch="Fill" Width="99"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="Cursor" Value="Hand"/>
		</Style>
		<Style x:Key="ButtonStyle_MetroSettings" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid
							Width="48"
							Height="48"
							Opacity="1"
	>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="uxFill">
												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="uxIcon">
												<EasingColorKeyFrame KeyTime="0" Value="Black"/>
											</ColorAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="uxBorder">
												<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Path x:Name="uxFill"
								Margin="0,0,0,0"
								HorizontalAlignment="Left"
								VerticalAlignment="Top"
								Height="48"
								Width="48"
								Stretch="Fill"
								Opacity="0"
								Data="M 24,0 C10.744140625,0 0,10.74609375 0,24 0,37.255859375 10.744140625,48 24,48 37.25390625,48 48,37.255859375 48,24 48,10.74609375 37.25390625,0 24,0 24,0 24,0 24,0 z"
								Fill="#ffffff" />
							<Path x:Name="uxBorder"
								Margin="0,0,0,0"
								HorizontalAlignment="Left"
								VerticalAlignment="Top"
								Height="48"
								Width="48"
								Stretch="Fill"
								Opacity="1"
								Data="M 24,3 C35.57958984375,3 45,12.42041015625 45,24 45,35.5791015625 35.57958984375,45 24,45 12.42041015625,45 3,35.5791015625 3,24 3,12.42041015625 12.42041015625,3 24,3 24,3 24,3 24,3 zM 24,0 C10.744140625,0 0,10.74609375 0,24 0,37.255859375 10.744140625,48 24,48 37.25390625,48 48,37.255859375 48,24 48,10.74609375 37.25390625,0 24,0 24,0 24,0 24,0 z"
								Fill="#ffffff" />
							<Path x:Name="uxIcon" Data="M9.7420756,8.0234504 C10.332293,8.0377017 10.894413,8.3644999 11.177738,8.9257805 11.595707,9.7402354 11.273441,10.742191 10.46094,11.158207 9.6464862,11.576177 8.6445319,11.253911 8.2265625,10.439456 7.8085934,9.6210946 8.1308594,8.6269517 8.9433603,8.2050757 9.1997083,8.0750705 9.4737947,8.0169726 9.7420756,8.0234504 z M9.5886849,5.1420841 C8.9298744,5.157917 8.2643433,5.3184204 7.6386719,5.6386719 5.4160156,6.78125 4.5351563,9.5058594 5.6777344,11.732422 6.8144531,13.958984 9.546875,14.833984 11.769531,13.695313 13.994141,12.552734 14.871094,9.828125 13.730469,7.6035155 12.912048,6.0059814 11.272312,5.1016216 9.5886849,5.1420841 z M8.5605469,0 C8.5605469,0 9.6386719,2.3984375 9.6386719,2.3984375 10.259766,2.4023438 10.875,2.4804688 11.470703,2.6367188 11.470703,2.6367188 13.191406,0.5 13.191406,0.5 13.191406,0.5 15.949219,2.1992188 15.949219,2.1992188 15.949219,2.1992188 14.931641,4.6699219 14.931641,4.6699219 15.294922,5.0527344 15.615234,5.4804688 15.894531,5.9492188 15.894531,5.9492188 18.650391,5.6542969 18.650391,5.6542969 18.650391,5.6542969 19.400391,8.8027344&#xd;&#xa;19.400391,8.8027343 19.400391,8.8027344 16.941406,9.8261719 16.941406,9.8261719 16.933594,10.369141 16.861328,10.908203 16.732422,11.433594 16.732422,11.433594 18.869141,13.15625 18.869141,13.15625 18.869141,13.15625 17.171875,15.914063 17.171875,15.914063 17.171875,15.914063 14.755859,14.919922 14.755859,14.919922 14.367188,15.302734 13.919922,15.642578 13.431641,15.939453 13.431641,15.939453 13.716797,18.617188 13.716797,18.617188 13.716797,18.617188&#xd;&#xa;10.564453,19.367188 10.564453,19.367188 10.564453,19.367188 9.5859375,17.007813 9.5859375,17.007813 9.0019531,17.001953 8.4296875,16.923828 7.8671876,16.785156 7.8671875,16.785156 6.2148438,18.833984 6.2148439,18.833984 6.2148438,18.833984 3.4570313,17.136719 3.4570313,17.136719 3.4570313,17.136719 4.4140625,14.814453 4.4140625,14.814453 4.0078125,14.398438 3.6542969,13.925781 3.3535156,13.404297 3.3535156,13.404297 0.75195313,13.683594 0.75195313,13.683594&#xd;&#xa;0.75195313,13.683594 0,10.53125 0,10.53125 0,10.53125 2.3320313,9.5644531 2.3320313,9.5644532 2.34375,8.9765625 2.4316406,8.3925781 2.5820313,7.8300781 2.5820313,7.8300781 0.53320313,6.1777344 0.53320313,6.1777344 0.53320313,6.1777344 2.234375,3.421875 2.234375,3.421875 2.234375,3.421875 4.6132813,4.4003906 4.613281,4.4003906 4.9667969,4.0664063 5.3632813,3.7617188 5.796875,3.4941406 5.796875,3.4941406 5.4277344,0.83984375&#xd;&#xa;5.4277344,0.83984375 5.4277344,0.83984375 8.5605469,0 8.5605469,0 z"
								Fill="#ffffff"
								HorizontalAlignment="Left"
								Height="19.368" Margin="14.299,14.316,0,0" Stretch="Fill"
								VerticalAlignment="Top"
								Width="19.4"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="Cursor" Value="Hand"/>
		</Style>
		<ControlTemplate x:Key="SliderControlTemplate_1967LargeNeedle" TargetType="{x:Type Slider}">
            <Skin1967:LargeNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="120" MinAngle="-120" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}"/>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_1967SmallNeedle" TargetType="{x:Type Slider}">
            <Skin1967:SmallNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="60" MinAngle="-60" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}"/>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_2011LargeNeedle" TargetType="{x:Type Slider}">
            <Skin2011:LargeNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="80" MinAngle="-80" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}"/>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_2011SmallNeedle" TargetType="{x:Type Slider}">
            <Skin2011:SmallNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="30" MinAngle="-30" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}"/>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_2011SmallNeedle_Flipped" TargetType="{x:Type Slider}">
            <Skin2011:SmallNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="-210" MinAngle="-150" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}"/>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_MetroLargeNeedle" TargetType="{x:Type Slider}">
            <Canvas>
				<SkinMetro:LargeNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="90" MinAngle="-90" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}"/>
				<SkinMetro:LargeNeedleOverlay/>
				<StackPanel Orientation="Vertical" Width="410" Canvas.Left="-201" Canvas.Top="0">
					<StackPanel Orientation="Horizontal" d:LayoutOverrides="Width" HorizontalAlignment="Center">
						<TextBlock TextWrapping="Wrap" Foreground="White" FontSize="106.667" FontFamily="Segoe UI Light" VerticalAlignment="Center" Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat=\{0:n0\}}"/>
						<TextBlock TextWrapping="Wrap" Text="{TemplateBinding ToolTip}" Foreground="White" FontSize="53.333" VerticalAlignment="Center" Margin="6,42,0,0"/>
					</StackPanel>
				</StackPanel>
			</Canvas>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_MetroLargeNeedle_SmallerLabel" TargetType="{x:Type Slider}">
            <Canvas>
				<SkinMetro:LargeNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="90" MinAngle="-90" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}"/>
				<SkinMetro:LargeNeedleOverlay/>
				<StackPanel Orientation="Vertical" Width="410" Canvas.Left="-201" Canvas.Top="24">
					<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
						<TextBlock TextWrapping="Wrap" Foreground="White" FontSize="73.333" FontFamily="Segoe UI Light" VerticalAlignment="Center" Text="{Binding Value, RelativeSource={RelativeSource TemplatedParent}, StringFormat=\{0:n0\}}"/>
						<TextBlock TextWrapping="Wrap" Text="{TemplateBinding ToolTip}" Foreground="White" FontSize="36" VerticalAlignment="Center" Margin="6,31,0,0"/>
					</StackPanel>
				</StackPanel>
			</Canvas>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_MetroTemperatureNeedle" TargetType="{x:Type Slider}">
            <Canvas>
				<SkinMetro:LargeNeedle HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="90" MinAngle="-90" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}" RenderTransformOrigin="0.5,0.5">
					<SkinMetro:LargeNeedle.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="0.333" ScaleY="0.333"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</SkinMetro:LargeNeedle.RenderTransform>
				</SkinMetro:LargeNeedle>
				<SkinMetro:LargeNeedleOverlay RenderTransformOrigin="0.5,0.5">
					<SkinMetro:LargeNeedleOverlay.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="0.333" ScaleY="0.333"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</SkinMetro:LargeNeedleOverlay.RenderTransform>
				</SkinMetro:LargeNeedleOverlay>
				<Path
					Margin="0,0,0,0"
					HorizontalAlignment="Left"
					VerticalAlignment="Top"
					Height="32"
					Width="32"
					Stretch="Fill"
					Opacity="1"
					Data="M 17.07940673828125,7.129486083984375 C17.07940673828125,7.129486083984375 17.07757568359375,7.092041015625 17.07757568359375,7.092041015625 17.07757568359375,7.092041015625 21.52655029296875,7.094573974609375 21.52655029296875,7.094573974609375 22.084228515625,7.094573974609375 22.53668212890625,6.63507080078125 22.53668212890625,6.068206787109375 22.53668212890625,5.5013427734375 22.084228515625,5.041748046875 21.52655029296875,5.041748046875 21.52655029296875,5.041748046875 17.07757568359375,5.043060302734375 17.07757568359375,5.043060302734375 17.07757568359375,5.043060302734375 17.07940673828125,4.81158447265625 17.07940673828125,4.81158447265625 17.07940673828125,4.81158447265625 17.07940673828125,2.008880615234375 17.07940673828125,2.008880615234375 17.07940673828125,0.899658203125 16.8681640625,0 15.77593994140625,0 14.68377685546875,0 14.472412109375,0.899658203125 14.472412109375,2.008880615234375 14.472412109375,2.008880615234375 14.472412109375,20.81658935546875 14.472412109375,20.81658935546875 13.208984375,21.347259521484375 12.31915283203125,22.609039306640625 12.31915283203125,24.0841064453125 12.31915283203125,26.03607177734375 13.87738037109375,27.61846923828125 15.80010986328125,27.61846923828125 17.722412109375,27.61846923828125 19.281005859375,26.03607177734375 19.281005859375,24.0841064453125 19.281005859375,22.590972900390625 18.36834716796875,21.317474365234375 17.07940673828125,20.79913330078125 17.07940673828125,20.79913330078125 17.07940673828125,18.43206787109375 17.07940673828125,18.43206787109375 17.07940673828125,18.43206787109375 17.07757568359375,18.265533447265625 17.07757568359375,18.265533447265625 17.07757568359375,18.265533447265625 21.52655029296875,18.26849365234375 21.52655029296875,18.26849365234375 22.084228515625,18.26849365234375 22.53668212890625,17.80889892578125 22.53668212890625,17.242828369140625 22.53668212890625,16.67529296875 22.084228515625,16.21636962890625 21.52655029296875,16.21636962890625 21.52655029296875,16.21636962890625 17.07757568359375,16.216552734375 17.07757568359375,16.216552734375 17.07757568359375,16.216552734375 17.07940673828125,16.114166259765625 17.07940673828125,16.114166259765625 17.07940673828125,16.114166259765625 17.07940673828125,12.780120849609375 17.07940673828125,12.780120849609375 17.07940673828125,12.780120849609375 17.07757568359375,12.56671142578125 17.07757568359375,12.56671142578125 17.07757568359375,12.56671142578125 21.52655029296875,12.5675048828125 21.52655029296875,12.5675048828125 22.084228515625,12.5675048828125 22.53668212890625,12.10784912109375 22.53668212890625,11.54168701171875 22.53668212890625,10.97406005859375 22.084228515625,10.51531982421875 21.52655029296875,10.51531982421875 21.52655029296875,10.51531982421875 17.07757568359375,10.5177001953125 17.07757568359375,10.5177001953125 17.07757568359375,10.5177001953125 17.07940673828125,10.4622802734375 17.07940673828125,10.4622802734375 17.07940673828125,10.4622802734375 17.07940673828125,7.129486083984375 17.07940673828125,7.129486083984375 zM 5.66033935546875,29.033935546875 C4.50762939453125,28.223388671875 2.68536376953125,28.596435546875 2.68536376953125,28.596435546875 2.3218994140625,28.67010498046875 2.02459716796875,29.03851318359375 2.02459716796875,29.414794921875 2.02459716796875,29.414794921875 2.02459716796875,30.3040771484375 2.02459716796875,30.3040771484375 2.02459716796875,30.68035888671875 2.3218994140625,30.9278564453125 2.68536376953125,30.8536376953125 2.68536376953125,30.8536376953125 4.50762939453125,30.48126220703125 5.66033935546875,31.2911376953125 6.97222900390625,32.21282958984375 8.437255859375,32.25946044921875 9.79412841796875,31.2911376953125 11.150634765625,30.322906494140625 12.61639404296875,30.369384765625 13.92755126953125,31.2911376953125 15.23870849609375,32.21282958984375 16.7044677734375,32.25946044921875 18.0615234375,31.2911376953125 19.41790771484375,30.322906494140625 20.8837890625,30.369384765625 22.1949462890625,31.2911376953125 23.506103515625,32.21282958984375 24.9713134765625,32.25946044921875 26.3289794921875,31.2911376953125 27.5191650390625,30.44189453125 29.31597900390625,30.84521484375 29.31597900390625,30.84521484375 29.6773681640625,30.92669677734375 29.9739990234375,30.68487548828125 29.9739990234375,30.308746337890625 29.9739990234375,30.308746337890625 29.9739990234375,29.4185791015625 29.9739990234375,29.4185791015625 29.9739990234375,29.0423583984375 29.6773681640625,28.66815185546875 29.31597900390625,28.58734130859375 29.31597900390625,28.58734130859375 27.5191650390625,28.183990478515625 26.3289794921875,29.033935546875 24.9713134765625,30.00225830078125 23.506103515625,29.95513916015625 22.1949462890625,29.033935546875 20.8837890625,28.112213134765625 19.41790771484375,28.06512451171875 18.0615234375,29.033935546875 16.7044677734375,30.00225830078125 15.23870849609375,29.95513916015625 13.92755126953125,29.033935546875 12.61639404296875,28.112213134765625 11.150634765625,28.06512451171875 9.79412841796875,29.033935546875 8.437255859375,30.00225830078125 6.97222900390625,29.95513916015625 5.66033935546875,29.033935546875 zM 0.80078125,22.51007080078125 C0.80078125,22.51007080078125 0.5531005859375,22.64068603515625 0.5531005859375,22.64068603515625 0.24884033203125,22.75958251953125 0,23.164886474609375 0,23.541015625 0,23.541015625 0,24.52490234375 0,24.52490234375 0,24.90106201171875 0.24884033203125,25.11175537109375 0.5531005859375,24.992919921875 0.5531005859375,24.992919921875 0.80078125,24.86224365234375 0.80078125,24.86224365234375 2.3428955078125,24.05242919921875 4.55157470703125,23.925689697265625 6.302490234375,24.86224365234375 7.5875244140625,25.551422119140625 9.672119140625,25.403961181640625 9.672119140625,25.403961181640625 10.0419921875,25.378082275390625 10.34417724609375,25.048431396484375 10.34417724609375,24.6722412109375 10.34417724609375,24.6722412109375 10.34417724609375,23.68841552734375 10.34417724609375,23.68841552734375 10.34417724609375,23.31219482421875 10.0419921875,23.02532958984375 9.672119140625,23.05169677734375 9.672119140625,23.05169677734375 7.5875244140625,23.198486328125 6.302490234375,22.51007080078125 4.55157470703125,21.572174072265625 2.3428955078125,21.70013427734375 0.80078125,22.51007080078125 zM 31.19940185546875,22.51007080078125 C29.65631103515625,21.70013427734375 27.44842529296875,21.572174072265625 25.69744873046875,22.51007080078125 24.4130859375,23.198486328125 22.32733154296875,23.05169677734375 22.32733154296875,23.05169677734375 21.9576416015625,23.02532958984375 21.6558837890625,23.31219482421875 21.6558837890625,23.68841552734375 21.6558837890625,23.68841552734375 21.6558837890625,24.6722412109375 21.6558837890625,24.6722412109375 21.6558837890625,25.048431396484375 21.9576416015625,25.378082275390625 22.32733154296875,25.403961181640625 22.32733154296875,25.403961181640625 24.4130859375,25.551422119140625 25.69744873046875,24.86224365234375 27.44842529296875,23.925689697265625 29.65631103515625,24.05242919921875 31.19940185546875,24.86224365234375 31.19940185546875,24.86224365234375 31.4468994140625,24.992919921875 31.4468994140625,24.992919921875 31.75103759765625,25.11175537109375 32,24.90106201171875 32,24.52490234375 32,24.52490234375 32,23.541015625 32,23.541015625 32,23.164886474609375 31.75103759765625,22.75958251953125 31.4468994140625,22.64068603515625 31.4468994140625,22.64068603515625 31.19940185546875,22.51007080078125 31.19940185546875,22.51007080078125 z"
					Fill="#ffffff" Canvas.Left="-16" Canvas.Top="11" />
			</Canvas>
		</ControlTemplate>
		<ControlTemplate x:Key="SliderControlTemplate_MetroFuelNeedle" TargetType="{x:Type Slider}">
			<Canvas>
				<VisualStateManager.VisualStateGroups>
					<VisualStateGroup x:Name="CommonStates">
						<VisualState x:Name="Normal"/>
						<VisualState x:Name="MouseOver"/>
						<VisualState x:Name="Disabled">
							<Storyboard>
								<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="uxWarningNeedle">
									<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
								</ObjectAnimationUsingKeyFrames>
								<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="uxNeedle">
									<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
								</ObjectAnimationUsingKeyFrames>
							</Storyboard>
						</VisualState>
					</VisualStateGroup>
				</VisualStateManager.VisualStateGroups>
				<SkinMetro:LargeNeedle x:Name="uxNeedle" HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="90" MinAngle="-90" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}" RenderTransformOrigin="0.5,0.5">
					<SkinMetro:LargeNeedle.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="0.333" ScaleY="0.333"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</SkinMetro:LargeNeedle.RenderTransform>
				</SkinMetro:LargeNeedle>
				<SkinMetro:LargeNeedleWarning x:Name="uxWarningNeedle" HorizontalAlignment="Center" VerticalAlignment="Center" MaxAngle="90" MinAngle="-90" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" Minimum="{TemplateBinding Minimum}" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
					<SkinMetro:LargeNeedleWarning.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="0.333" ScaleY="0.333"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</SkinMetro:LargeNeedleWarning.RenderTransform>
				</SkinMetro:LargeNeedleWarning>
				<SkinMetro:LargeNeedleOverlay RenderTransformOrigin="0.5,0.5">
					<SkinMetro:LargeNeedleOverlay.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="0.333" ScaleY="0.333"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</SkinMetro:LargeNeedleOverlay.RenderTransform>
				</SkinMetro:LargeNeedleOverlay>
				<Path x:Name="ucIcon"
					Margin="0,0,0,0"
					HorizontalAlignment="Left"
					VerticalAlignment="Top"
					Height="31"
					Width="32"
					Stretch="Fill"
					Opacity="1"
					Data="M 29.787109375,8.465240478515625 C30.93975830078125,7.9521484375 32.2491455078125,8.97576904296875 31.95916748046875,7.095672607421875 31.0291748046875,1.26690673828125 24.42523193359375,0.05230712890625 24.42523193359375,0.05230712890625 23.85198974609375,-0.124755859375 23.61297607421875,0.16229248046875 23.42218017578125,0.6932373046875 23.23101806640625,1.224212646484375 23.159423828125,1.7984619140625 23.73309326171875,1.97491455078125 23.92205810546875,2.036376953125 25.031494140625,2.4443359375 25.99761962890625,3.229522705078125 26.9698486328125,4.0291748046875 27.802490234375,5.11505126953125 27.80926513671875,6.758331298828125 27.80926513671875,7.34912109375 27.6981201171875,8.0245361328125 27.41839599609375,8.80267333984375 26.93865966796875,10.13421630859375 26.74957275390625,11.464508056640625 26.74957275390625,12.75543212890625 26.7518310546875,15.33984375 27.49395751953125,17.768157958984375 28.19769287109375,19.925933837890625 28.90997314453125,22.077545166015625 29.5635986328125,23.9853515625 29.55120849609375,25.3411865234375 29.54248046875,26.100830078125 29.275390625,26.53863525390625 28.892578125,26.864410400390625 28.5079345703125,27.18450927734375 27.94403076171875,27.3695068359375 27.36248779296875,27.368408203125 26.78179931640625,27.3695068359375 26.21844482421875,27.18450927734375 25.83233642578125,26.864410400390625 25.4501953125,26.53863525390625 25.18218994140625,26.100830078125 25.173583984375,25.3411865234375 25.17742919921875,21.130523681640625 24.02972412109375,18.794158935546875 22.664306640625,17.528533935546875 21.8468017578125,16.7723388671875 21.00909423828125,16.451995849609375 20.43096923828125,16.316619873046875 20.43096923828125,16.316619873046875 20.43096923828125,2.83795166015625 20.43096923828125,2.83795166015625 20.43096923828125,1.3887939453125 19.15008544921875,0.203033447265625 17.5849609375,0.203033447265625 17.5849609375,0.203033447265625 5.03436279296875,0.203033447265625 5.03436279296875,0.203033447265625 3.469482421875,0.203033447265625 2.188720703125,1.3887939453125 2.188720703125,2.83795166015625 2.188720703125,2.83795166015625 2.188720703125,27.976959228515625 2.188720703125,27.976959228515625 2.188720703125,28.13262939453125 2.20635986328125,28.2855224609375 2.23492431640625,28.433685302734375 2.23492431640625,28.433685302734375 1.094482421875,28.433685302734375 1.094482421875,28.433685302734375 0.49237060546875,28.433685302734375 0,28.890045166015625 0,29.44744873046875 0,29.44744873046875 0,29.98638916015625 0,29.98638916015625 0,30.543731689453125 0.49237060546875,31 1.094482421875,31 1.094482421875,31 20.795654296875,31 20.795654296875,31 21.3975830078125,31 21.89031982421875,30.543731689453125 21.89031982421875,29.98638916015625 21.89031982421875,29.98638916015625 21.89031982421875,29.44744873046875 21.89031982421875,29.44744873046875 21.89031982421875,28.890045166015625 21.3975830078125,28.433685302734375 20.795654296875,28.433685302734375 20.795654296875,28.433685302734375 20.384765625,28.433685302734375 20.384765625,28.433685302734375 20.413330078125,28.2855224609375 20.43096923828125,28.13262939453125 20.43096923828125,27.976959228515625 20.43096923828125,27.976959228515625 20.43096923828125,18.479248046875 20.43096923828125,18.479248046875 20.682861328125,18.607666015625 20.9757080078125,18.8065185546875 21.2745361328125,19.1185302734375 22.062255859375,19.94427490234375 22.98297119140625,21.68829345703125 22.984375,25.3411865234375 22.975830078125,26.608734130859375 23.529052734375,27.69134521484375 24.37811279296875,28.379730224609375 25.2237548828125,29.07281494140625 26.30145263671875,29.39453125 27.36248779296875,29.39495849609375 28.42352294921875,29.39453125 29.5008544921875,29.07281494140625 30.3465576171875,28.379730224609375 31.195556640625,27.69134521484375 31.74951171875,26.608734130859375 31.740234375,25.3411865234375 31.72772216796875,23.45355224609375 30.980712890625,21.4686279296875 30.2921142578125,19.338043212890625 29.59454345703125,17.2142333984375 28.93603515625,14.97271728515625 28.9385986328125,12.75543212890625 28.9385986328125,11.646484375 29.09918212890625,10.54339599609375 29.4951171875,9.443603515625 29.61566162109375,9.1094970703125 29.71124267578125,8.783935546875 29.787109375,8.465240478515625 zM 18.1739501953125,11.473419189453125 C18.1739501953125,12.0308837890625 17.68133544921875,12.48699951171875 17.07952880859375,12.48699951171875 17.07952880859375,12.48699951171875 5.64190673828125,12.48699951171875 5.64190673828125,12.48699951171875 5.0400390625,12.48699951171875 4.54742431640625,12.0308837890625 4.54742431640625,11.473419189453125 4.54742431640625,11.473419189453125 4.54742431640625,4.03582763671875 4.54742431640625,4.03582763671875 4.54742431640625,3.4783935546875 5.0400390625,3.022216796875 5.64190673828125,3.022216796875 5.64190673828125,3.022216796875 17.07952880859375,3.022216796875 17.07952880859375,3.022216796875 17.68133544921875,3.022216796875 18.1739501953125,3.4783935546875 18.1739501953125,4.03582763671875 18.1739501953125,4.03582763671875 18.1739501953125,11.473419189453125 18.1739501953125,11.473419189453125 z"
					Fill="#ffffff" Canvas.Left="-14" Canvas.Top="12" />
			</Canvas>
            <!-- Update Trigger for win8 -->
			<ControlTemplate.Triggers>
				<Trigger Property="IsEnabled" Value="False">
					<Setter Property="Fill" TargetName="ucIcon" Value="{DynamicResource MetroWarningColor}"/>
				</Trigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
		<SolidColorBrush x:Key="MetroWarningColor" Color="#FFFF6600"/>
		<SolidColorBrush x:Key="AccentColor" Color="#FF1BA1E2"/>
		<System:Double x:Key="ColorTileSize">85</System:Double>
		<Thickness x:Key="ColorTileRowMargin">0,0,0,24</Thickness>
		<Thickness x:Key="ColorTileMargin">0,0,24,0</Thickness>
		<Thickness x:Key="ColorTileLabelMargin">0,4,0,6</Thickness>
		<System:Double x:Key="ColorTileLabelFontSize">21.333</System:Double>
		<Style x:Key="ButtonStyle_Back" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
<Canvas
							Height="40"
							Width="40"
							Background="{x:Null}"
							HorizontalAlignment="Left"
							VerticalAlignment="Top">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="uxIcon">
												<EasingColorKeyFrame KeyTime="0" Value="Black"/>
											</ColorAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="uxBorder">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
											</ObjectAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="uxFill">
												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Path x:Name="uxFill"
								Canvas.Left="0"
								Canvas.Top="0"
								Height="40"
								Width="40"
								Stretch="Fill"
								Opacity="0"
								Data="M 20,0 C8.95,0 0,8.95 0,20 0,31.05 8.95,40 20,40 31.04,40 40,31.05 40,20 40,8.96 31.04,0 20,0 20,0 20,0 20,0 z"
								Fill="White" />
							<Path x:Name="uxBorder"
								Canvas.Left="0"
								Canvas.Top="0"
								Height="40"
								Width="40"
								Stretch="Fill"
								Opacity="1"
								Data="M 20,2.5 C29.65,2.5 37.5,10.35 37.5,20 37.5,29.65 29.65,37.5 20,37.5 10.35,37.5 2.5,29.65 2.5,20 2.5,10.35 10.35,2.5 20,2.5 20,2.5 20,2.5 20,2.5 zM 20,0 C8.95,0 0,8.96 0,20 0,31.05 8.95,40 20,40 31.04,40 40,31.05 40,20 40,8.95 31.04,0 20,0 20,0 20,0 20,0 z"
								Fill="#ffffff" />
							<Path x:Name="uxIcon"
								Canvas.Left="10"
								Canvas.Top="13"
								Height="14"
								Width="20.5"
								Stretch="Fill"
								Opacity="1"
								Data="M 30.5,18 C30.5,18 17.14,18 17.14,18 17.14,18 22.5,13 22.5,13 22.5,13 17.5,13 17.5,13 17.5,13 10,20 10,20 10,20 17.5,27 17.5,27 17.5,27 22.5,27 22.5,27 22.5,27 17.14,22 17.14,22 17.14,22 30.5,22 30.5,22 30.5,22 30.5,18 30.5,18 z"
								Fill="#ffffff" />
						</Canvas>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="Cursor" Value="Hand"/>
		</Style>
		<Style x:Key="RadioButtonStyle_ColorSelectionTile" TargetType="{x:Type RadioButton}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RadioButton}">
						
						<StackPanel Margin="{DynamicResource ColorTileMargin}" d:LayoutOverrides="Width, Height">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CheckStates">
									<VisualState x:Name="Checked"/>
									<VisualState x:Name="Unchecked"/>
									<VisualState x:Name="Indeterminate"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border Height="{DynamicResource ColorTileSize}" Width="{DynamicResource ColorTileSize}" Background="{TemplateBinding Foreground}"/>
							<TextBlock x:Name="uxLabel" TextWrapping="Wrap" FontSize="{DynamicResource ColorTileLabelFontSize}" Foreground="White" Text="{TemplateBinding Content}" Margin="{DynamicResource ColorTileLabelMargin}"/>
						</StackPanel>
						<!-- Update trigger for win8 -->
						<ControlTemplate.Triggers>
							<Trigger Property="IsChecked" Value="True">
								<Setter Property="Foreground" TargetName="uxLabel" Value="{DynamicResource AccentColor}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="Cursor" Value="Hand"/>
		</Style>
		<SolidColorBrush x:Key="ThemeColor_Green" Color="#FF339933"/>
		<SolidColorBrush x:Key="ThemeColor_Red" Color="#FFE51400"/>
		<SolidColorBrush x:Key="ThemeColor_Blue" Color="#FF1BA1E2"/>
		<SolidColorBrush x:Key="ThemeColor_Yellow" Color="#FFF09609"/>
		<SolidColorBrush x:Key="ThemeColor_Pink" Color="#FFE671B8"/>
		<SolidColorBrush x:Key="ThemeColor_brown" Color="#FFA05000"/>
		<SolidColorBrush x:Key="ThemeColor_Lime" Color="#FF8CBF26"/>
		<SolidColorBrush x:Key="ThemeColor_Teal" Color="#FF00ABA9"/>
		<SolidColorBrush x:Key="ThemeColor_Purple" Color="#FFA200FF"/>
		<SolidColorBrush x:Key="ThemeColor_Magenta" Color="#FFFF0097"/>
	</Application.Resources>
</Application>